package com.yxhl.zoume.data.http.rest.param.passenger;

import java.io.Serializable;

/**
 * Created by sugarya on 16/5/6.
 */
public class PassengerParam implements Serializable {
    /*"contract": {
        "realname": "冯如晓测试",
                "mobile": "15010795097",
                "idType": 1,
                "idNumber": "11111223345",
                "contractType": 1,
                "gender": 1
    }
    */

    /**
     * realname : 冯如晓测试
     * mobile : 15010795097
     * idType : 1
     * idNumber : 11111223345
     * contractType : 1
     * gender : 1
     */
    /**
     * 姓名
     */
    private String id;

    private String realname;
    /**
     * 乘客人手机号
     */
    private String mobile;
    /**
     * 乘客证件类型
     */
    private int idType = 1;
    /**
     * 证件号码
     */
    private String idNumber;
    /**
     * 乘客人类型
     */
    private int contractType;
    /**
     * 性别
     */
    private int gender;

    public PassengerParam(int idType) {
        this.idType = idType;
    }

    public PassengerParam(String realname, String mobile, int idType, String idNumber, int contractType, int gender) {
        this.realname = realname;
        this.mobile = mobile;
        this.idType = idType;
        this.idNumber = idNumber;
        this.contractType = contractType;
        this.gender = gender;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public int getIdType() {
        return idType;
    }

    public void setIdType(int idType) {
        this.idType = idType;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public int getContractType() {
        return contractType;
    }

    public void setContractType(int contractType) {
        this.contractType = contractType;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "PassengerParam{" +
                "gender=" + gender +
                ", contractType=" + contractType +
                ", idNumber='" + idNumber + '\'' +
                ", idType=" + idType +
                ", mobile='" + mobile + '\'' +
                ", realname='" + realname + '\'' +
                '}';
    }

}
